Mark Noble's first-half strike earned West Ham their first Premier League win in seven games as they beat Burnley at London Stadium.